import {setServer} from "@/utils/axios";
import {eventUrl} from "../../../../url";

const request = setServer(eventUrl);

// 查询预警事件
export function getUserEvent(query) {
  return request({
    url: '/biotope/user/event/details',
    method: 'get',
    params: query
  })
}

// 多日未出现预警
export function updateUserEvent(query) {
  return request({
    url: '/biotope/user/event/add-update',
    method: 'post',
    data: query
  })
}
